<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function fn() {
            console.log("1111111111");
            return;//return在函数当中阻止代码的运算,return 后面有没有数据都是阻止函数的往后执行
            // return 1;   //代码执行到这里就不会往后执行
            console.log(2222222222);
        }
        fn();
    </script>
</body>

</html>